var RequestBase = require("request_base.js");

/**
 * getRequest
 */
function getRequest(hostname, port, path) {
  return RequestBase.request(RequestBase.Request.Method.Get, 'https', hostname, port, path)
}

/**
 * postRequest
 */
function postRequest(hostname, port, path, data) {
  return RequestBase.request(RequestBase.Request.Method.Post, 'https', hostname, port, path, data);
}

/**
 * putRequest
 */
function putRequest(hostname, port, path, data) {
  return RequestBase.request(RequestBase.Request.Method.Put, 'https', hostname, port, path, data);
}

/**
 * deleteRequest
 */
function deleteRequest(hostname, port, path) {
  return RequestBase.request(RequestBase.Request.Method.Delete, 'https', hostname, port, path);
}

module.exports.getRequest = getRequest;
module.exports.postRequest = postRequest;
module.exports.putRequest = putRequest;
module.exports.deleteRequest = deleteRequest;
